Retrieve redline from specific history version

I am wondering if it is possible to retrieve only the redlines from a specific modification in a specific history version in DOORS using DXL?

Specifically, I want a script to retrieve the most recent set of out-links added or removed by the current user.

Psuedo-code might look like this:

 

// Loop through all displayed objects in the current module
for o in m do {
    
    // Loop through all baseline histories (no need to display baseline)
    for currHistory in o do {
        
        // If out-links were added/removed in this history version
        // break the loop because we only want the most recent version
        if ( Out-Links were Added/Removed) break loop
        
    }
    
    // Loop through all modifications in the current history verision
    for modification in currHistory do {
        
        // True if this modification was made by the current user
        if (modification.Author == Current User) {
            
            // True if Out-Link was Added
            if (modification == Added Out-Link) {
                print "Link Added: " The_Link "\n"
            }
            // True if Out-Link was Removed
            else if (modification == Removed Out-Link) {
                print "Link Removed: " The_Link "\n"
            }
            
        }
    }
}

 

Is something like this even possible? If so, how would I go about it?


CliffordCross - Thu Mar 01 11:28:48 EST 2018

Re: Retrieve redline from specific history version
PekkaMakinen - Thu Mar 01 12:39:05 EST 2018

The code examples in https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014255353 should be a start for the functionality.

Note that to access history in baselines, you have to load those baselines. If you want to get only the last link changes, the loop through the history and store each create link / delete link event in a variable. Those values after the loop are the most recent / latest ones.